|
![](/i/fill.gif) |
Hello POVers ...
After a large period of POV-abstinence I'm back now, to play with this toy.
In the last weeks I was merely preparing for an exam (which I still didn't
pass)-; and I reinstalled my network at home ...
On my workstation there's now Linux and I'll try to migrate from Windows.
This gave me the chance to introduce into C(++)-programming. And what would be
the best subject for this exercise: POV-Ray ...
So I took the chance and only needed some hours to play with the sourcecode
and implement a pattern I sometimes use (often enough) but still needed to
achieve with layered textures.
So I have a working version of a gridline-pattern now, that has the following
syntax:
pigment {
grid COLOR_1, COLOR_2
[grid_size <Size>]
}
the semantics is pretty simple:
X=Point.x-floor(Point.x);
Y=Point.y-floor(Point.y);
Z=Point.z-floor(Point.z);
return (
(
(X < grid_size.x)
||(Y < grid_size.y)
||(Z < grid_size.z)
)
? 1
: 0
)
So this is nothing special for the POV-Core-development-team, but for me it
was something like the HelloWorld in POV. It works so far as expected, and
seems to be "a bit faster" than the three-layer-solution I used before. My
Question is now: How to continue?
I have commented the source, where I have changed/inserted Code. Lets consider
this would be a useful add to POV, what would be the next steps, I should make
to offer it to community? Has there been some consensus on how to create a doc
for that and btw: How do I create a patch for these modifications now? (I've
not done very much programing under linux, yet, so diff/patch are quite un-
known to me and I'd prefer some help on how to create a proper patch-file that
would suite into the PoPOV-repository ...)
So far ... thanks for reading this stuff ...
I still have the hope to get some replies ... Jan
--
\ _ \ \ _ \ ___ __
\ / \ \/\ \ \ / \ \ Z L_) \/\
\__/ \_/\ \ \ \/-_\ \_/\ \_ Z__ \__/ \
Post a reply to this message
|
![](/i/fill.gif) |